﻿using B.S.Databasic.Domain.RBAC;
using B.S.Databasic.ErrorCode;
using MediatR;

namespace B.S.Databasic.Api.Read.Application.Command.Permission
{
    /// <summary>
    /// 权限命令层
    /// </summary>
    public class GetPermissionCommand : IRequest<ApiPageing<PermissionModel>>
    {
        /// <summary>
        /// 权限名称
        /// </summary>
        public string? PermissionName { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int Index { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int Size { get; set; } = 3;
    }
}
